package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author baikun
 * @since 2020-05-14
 */
@TableName("my_order_mer")
public class OrderMer extends Model<OrderMer> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单ID
     */
    private String orderid;
    /**
     * 商品ID
     */
    private Integer merid;
    /**
     * 商品名称
     */
    private String mername;
    /**
     * 商品属性
     */
    private String merattr;
    /**
     * 商品数量
     */
    private Integer merquantity;
    /**
     * 商品价格
     */
    private BigDecimal merprice;
    /**
     * 商品图片地址
     */
    private String merpictureurl;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public Integer getMerid() {
        return merid;
    }

    public void setMerid(Integer merid) {
        this.merid = merid;
    }

    public String getMername() {
        return mername;
    }

    public void setMername(String mername) {
        this.mername = mername;
    }

    public String getMerattr() {
        return merattr;
    }

    public void setMerattr(String merattr) {
        this.merattr = merattr;
    }

    public Integer getMerquantity() {
        return merquantity;
    }

    public void setMerquantity(Integer merquantity) {
        this.merquantity = merquantity;
    }

    public BigDecimal getMerprice() {
        return merprice;
    }

    public void setMerprice(BigDecimal merprice) {
        this.merprice = merprice;
    }

    public String getMerpictureurl() {
        return merpictureurl;
    }

    public void setMerpictureurl(String merpictureurl) {
        this.merpictureurl = merpictureurl;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderMer{" +
        ", id=" + id +
        ", orderid=" + orderid +
        ", merid=" + merid +
        ", mername=" + mername +
        ", merattr=" + merattr +
        ", merquantity=" + merquantity +
        ", merprice=" + merprice +
        ", merpictureurl=" + merpictureurl +
        "}";
    }
}
